﻿@model ShenLanCMS.Models.PostType
@{
    ViewBag.Title = "分类添加";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>分类添加</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.TypeName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeName)
            @Html.ValidationMessageFor(model => model.TypeName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Keyword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Keyword)
            @Html.ValidationMessageFor(model => model.Keyword)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        @* <div class="editor-label">
            @Html.LabelFor(model => model.ParentID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParentID)
            @Html.ValidationMessageFor(model => model.ParentID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Layer)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Layer)
            @Html.ValidationMessageFor(model => model.Layer)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsLast)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsLast)
            @Html.ValidationMessageFor(model => model.IsLast)
        </div>*@
        <p>
            <input type="submit" value="添加" />
        </p>
    </fieldset>
}
